//
//  dataModel.m
//  demo3
//
//  Created by 张仕儒 on 2021/7/8.
//

#import "dataModel.h"


@implementation dataModel

- (void)genFakeData {
    software = @"software.app";
    processPerson = @"本机用户";
    developer = @"Apple Inc";
    
    switch (arc4random()%4) {
        case 0:
            status = 0; // 禁止
            break;
        case 1:
            status = 1; // 无发行商
            break;
        case 2:
            status = 2; // 正常
            break;
        case 3:
            status = 3; // 允许
        default:
            status = 0;
            break;
    }
    if(arc4random()%2 == 0) {
        interNet = false;
        outerNet = true;
        category = @"软件";
    }else {
        interNet = true;
        outerNet = false;
        category = @"文件夹";
    }
}
- (NSString *)getSoftware {
    return software;
}
- (NSString *)getProcessPerson{
    return processPerson;
}
- (NSString *)getDeveloper {
    return developer;
}
- (NSString *)getCategory {
    return category;
}
- (int) getStatus {
    return status;
}
- (BOOL) getInterNet {
    return interNet;
}
- (BOOL) getOuterNet{
    return outerNet;
}
@end
